﻿@model CodeFinder.Common.Entities.Comment
 @{
     string @class = ((int)ViewData["Index"]) % 2 == 0 ? "odd" : "even";
     }
<div class="commentItem @(@class)">
    <p class="comment-author"><a href="#">@Model.Name</a> said... </p>
    <p>@Model.Content</p>
    <div class="commentDate @(@class)">
        @Model.CreatedOn.ToShortDateString() @Model.CreatedOn.ToShortTimeString()
    </div>
</div>
